<?php
$sqla = "call sp_getAlmacenes('".$usr_alm."','".$usr_mul."')";
//doEcho ($sqla);
$combo = '';
$resa = $mysqli->query($sqla) or die($mysqli->error.__LINE__);
$selalm = '';
if ($resa){
	while ($rowa = $resa->fetch_assoc()){
		//$selalm = "";
		//if (!$usr_mul && $rowa['AlmacenID'] == $usr_alm) $selalm = "selected='selected'";
		$combo = $combo ."<option value='".$rowa['AlmacenID']."' ".$selalm.">".$rowa['AlmacenID'].' - '.$rowa['AlmacenNom']."</option>";
	}
	$resa->close();
	if($mysqli->more_results())
	$mysqli->check_result();
}
?>

